<!DOCTYPE html>
<html>
<head th:include="include :: header"></head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">
            <input type="hidden" id="paperId" name="paperId" th:value="${paper.id}">
            <input type="hidden" id="questionType" th:value="${paper.questionType}">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">试卷名称</label>
                    <div class="layui-input-block">
                        <div class="layui-form-mid" th:text="${paper.name}" style="font-weight:bold;"></div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">题号</label>
                    <div class="layui-input-block">
                        <input type="text" name="sortNumber" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">题目名称</label>
                    <div class="layui-input-block">
                        <input type="text" name="name" placeholder="请输入" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">科目</label>
                    <div class="layui-input-block">
                        <select id="subjectId" name="subjectId" class="form-control chosen-select" lay-search>
                            <option value="">--请选择--</option>
                            <option th:each="item : ${subject}" th:value="${item.id}" th:text="${item.name}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="LAY-search">
                        <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                    </button>
                </div>
            </div>
        </div>
        <div class="layui-card-body">
            <div style="padding-bottom:10px;">
                <button shiro:hasPermission="manage:paper:paperQuestion:remove" class="layui-btn layuiadmin-btn-operate" data-type="batchdel">删除</button>
                <button shiro:hasPermission="manage:paper:paperQuestion:add" class="layui-btn layuiadmin-btn-operate" data-type="add">添加</button>
            </div>

            <table id="LAY-table" lay-filter="LAY-table"></table>

            <script type="text/html" id="table-btn-operate">
                <a shiro:hasPermission="manage:paper:paperQuestion:add" class="layui-btn layui-btn-xs" lay-event="view"><i class="layui-icon layui-icon-form"></i>查看</a>
                <a shiro:hasPermission="manage:paper:paperQuestion:remove" class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i>删除</a>
            </script>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script type="text/javascript" th:src="@{/custom/appjs/manage/paper/paperQuestion.list.js(v=${srvn})}"></script>
</body>
</html>